#pragma once
#include "Ui_OptionPanel_Pyr_LK.h"
#include "PanelBase.h"
#include "cv.h"
#include "ImageShow.h"
namespace OCEANUI
{
	class CPanel_Pyr_LK:
		public CPanelBase,
		public Ui_OptionPanel_Pyr_LK
	{
		Q_OBJECT
	public:
		CPanel_Pyr_LK(QWidget* parent);

		~CPanel_Pyr_LK(void);

		bool init();
signals:
		void ImageChanged(IplImage* pImage);

		public slots:
			void OnEvent(void* pParam,void* Sender);

		private slots:
			void OnbtnRunClick();

			
	private:
		double quality_level_;
		double min_distance_;
		bool bUse_Harris_;
		double win_size_;
		IplImage *image, *grey, *prev_grey, *pyramid, *prev_pyramid, *swap_temp;
		bool night_mode;
		bool need_to_init;


		CSimpleImageWindow imageWindow;
		bool isRunning;
	};
}
